﻿<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>My ASP.NET Web Page - @Page.Title</title>
        <link href="@Href("~/Styles/Site.css")" rel="stylesheet" />
        <link href="@Href("~/css/excite-bike/jquery-ui-1.8.18.custom.css")" rel="stylesheet" />
        <link href="@Href("~css//960/960.css")"/>
        <link href="@Href("css/960/reset.css")"/>
        <link href="@Href("css/960/style_960.css")"/>
        <link href="@Href("~/favicon.ico")" rel="shortcut icon" type="image/x-icon" />
        <script  src="/js/ts_picker.js"></script>
        <script  src="/js/jquery-1.7.1.min.js"></script>
        <script  src="/js/jquery-ui-1.8.18.custom.min.js"></script>
       
        
        <script>
         $(function(){
            $("#tabs" ).tabs();
          });
        
          $(function(){
             $("#buttons").children().button();
      
          });
        
          function GetLookUp(parent,child,lookup){
            $("select#"+parent).change(function(){
            $.getJSON('/Customer/GetLookup/'+lookup+'/'+$(this).val(), function(data) {
                var refData = data;
                $.each(refData, function(index, country) {
                var options='';  
                for (var i = 0; i < refData.length; i++) {
                        options+='<option value="' + refData[i].RefID + '">' + refData[i].RefDesc + '</option>';
                    }
                    $('#'+child).html(options);
                });
            });
            }//end for region
            
            );//end of change method
            }//end of method GetLookup
            
            
        function applyDatePicker(elem){
          $(elem).datepicker({
          changeMonth:true,
          changeYear:true,
          showButtonPanel:true,
          yearRange:'-100:+0',
          minDate: new Date(1950,1-1,1),
          maxDate: new Date(2012,12-1,31)
        }); 
}
        </script>
        
    </head>
    <body>
        <div id="page">
            <div id="header">
                <p class="site-title">MyRemit Cash Card Management System</p>
                <div id="login">
                    @if (WebSecurity.IsAuthenticated) {
                        <p>
                            Welcome <a href="@Href("~/Account/ChangePassword")" title="Change password">@WebSecurity.CurrentUserName</a>!
                            <a href="@Href("~/Account/Logout")">Logout</a>
                        </p>
                    } else {
                        <ul>
                            <li><a href="@Href("~/Account/Register")">Register</a></li>
                            <li><a href="@Href("~/Account/Login")">Login</a></li>
                        </ul>
                    }
                </div>
                <ul id="menu">
                    <li><a href="@Href("~/MainMenu")">Home</a></li>
                    <li><a href="@Href("~/About")">About</a></li>
                    <li><a href="@Href("~/Customer/Index/search")">Customer Management</a></li>
                    <li><a href="@Href("~/CashCard/Index")">Cash Card Management</a></li>
                    <li><a href="@Href("~/Reports/Index")">Reports</a></li>
                    
                    
                </ul>
            </div>
            <div id="main">
                <div id="content">
                    <h1>@Page.Title</h1>
                    @RenderBody()
                </div>
                <div id="footer">
                    &copy; @DateTime.Now.Year - MyRemit Cash Card Management System
                </div>
            </div>
        </div>
    </body>
</html>